﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class 住户投诉查询 : Form
    {
        private static string _strConnstring = ConfigurationManager.AppSettings["sqlconn1"];

        public 住户投诉查询()
        {
            InitializeComponent();
        }

        private void 费用查询_Load(object sender, EventArgs e)
        {
            this.reportViewer1.RefreshReport();
            var adapter = new SqlDataAdapter("select * from 投诉表", _strConnstring);
            var dataSet = new DataSet();
            adapter.Fill(dataSet);
            dataGridView1.DataSource = dataSet;
        }
    }
}